
package com.tenentia.pcmps.swm.data.beans;

import java.util.Date;

import org.apache.commons.beanutils.BeanUtils;

import com.tenentia.pcmps.swm.Constants;

/**
 * 
 * @author tEnEntia, S.L.N.E.
 * 
 */
public class InsurancePolicyMarketingPromotion {

	private Long internalID;

	private String name;

	private Double percentage;

	private Date fromDate;

	private Date toDate;

	public InsurancePolicyMarketingPromotion() {

		super();
	}

	@Override
	public String toString() {

		try {
			return BeanUtils.describe(this).toString();
		} catch (Exception e) {
			return Constants.STRING_EMPTY;
		}
	}

	/**
	 * @return the internalID
	 */
	public Long getInternalID() {

		return internalID;
	}

	/**
	 * @return the name
	 */
	public String getName() {

		return name;
	}

	/**
	 * @return the percentage
	 */
	public Double getPercentage() {

		return percentage;
	}

	/**
	 * @return the fromDate
	 */
	public Date getFromDate() {

		return fromDate;
	}

	/**
	 * @return the toDate
	 */
	public Date getToDate() {

		return toDate;
	}

	/**
	 * @param internalID
	 *            the internalID to set
	 */
	public void setInternalID(Long internalID) {

		this.internalID = internalID;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {

		this.name = name;
	}

	/**
	 * @param percentage
	 *            the percentage to set
	 */
	public void setPercentage(Double percentage) {

		this.percentage = percentage;
	}

	/**
	 * @param fromDate
	 *            the fromDate to set
	 */
	public void setFromDate(Date fromDate) {

		this.fromDate = fromDate;
	}

	/**
	 * @param toDate
	 *            the toDate to set
	 */
	public void setToDate(Date toDate) {

		this.toDate = toDate;
	}

}
